home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
thinkref
/
archive
/
THINKPascalUH2.1.sea
/
THINKPas Univ Hdr 2.1
/
Interfaces
/
CMMComponent.p
< prev
next >
Wrap
Text File
|
1995-09-14
|
5KB
|
166 lines
{ Converted with MPW2TPas Tuesday, September 12, 1995 5:27:01 PM }
{}
{ File: CMMComponent.p}
{ }
{ Contains: ColorSync CMM Components}
{ }
{ Version: Technology: ColorSync 2.0}
{ Package: Universal Interfaces 2.1 in “MPW Latest” on ETO #18}
{ }
{ Copyright: © 1984-1995 by Apple Computer, Inc.}
{ All rights reserved.}
{ }
{ Bugs?: If you find a problem with this file, use the Apple Bug Reporter}
{ stack. Include the file and version information (from above)}
{ in the problem description and send to:}
{ Internet: apple.bugs@applelink.apple.com}
{ AppleLink: APPLE.BUGS}
{ }
{}
unit CMMComponent;
interface
{$IFC UNDEFINED __CMMCOMPONENT__}
{$SETC __CMMCOMPONENT__ := 1}
uses
ConditionalMacros, Types, Quickdraw, Components, Quickdraw, Dialogs, Printing, CMICCProfile, CMApplication;
{ $PUSH}
{ $ALIGN MAC68K}
{ $LibExport+}
const
CMMInterfaceVersion = 1;
{ Component function selectors }
{ Required }
kCMMInit = 0;
kNCMMInit = 6;
kCMMMatchColors = 1;
kCMMCheckColors = 2;
{ Optional }
kCMMValidateProfile = 8;
kCMMFlattenProfile = 14;
kCMMUnflattenProfile = 15;
kCMMMatchBitmap = 9;
kCMMCheckBitmap = 10;
kCMMMatchPixMap = 3;
kCMMCheckPixMap = 4;
kCMMConcatenateProfiles = 5;
kCMMConcatInit = 7;
kCMMNewLinkProfile = 16;
kCMMGetPS2ColorSpace = 11;
kCMMGetPS2ColorRenderingIntent = 12;
kCMMGetPS2ColorRendering = 13;
kCMMGetPS2ColorRenderingVMSize = 17;
function NCMInit (CMSession: ComponentInstance; srcProfile: CMProfileRef; dstProfile: CMProfileRef): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 8, 6, $7000, $A82A;
{$ENDC}
function CMInit (CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 8, 0, $7000, $A82A;
{$ENDC}
function CMMatchColors (CMSession: ComponentInstance; var myColors: CMColor; count: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 8, 1, $7000, $A82A;
{$ENDC}
function CMCheckColors (CMSession: ComponentInstance; var myColors: CMColor; count: LONGINT; var result: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 2, $7000, $A82A;
{$ENDC}
{ Optional functions }
function CMMValidateProfile (CMSession: ComponentInstance; prof: CMProfileRef; var valid: BOOLEAN): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 8, 8, $7000, $A82A;
{$ENDC}
function CMMFlattenProfile (CMSession: ComponentInstance; prof: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 14, $7000, $A82A;
{$ENDC}
function CMMUnflattenProfile (CMSession: ComponentInstance; var resultFileSpec: FSSpec; proc: CMFlattenUPP; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 15, $7000, $A82A;
{$ENDC}
function CMMatchBitmap (CMSession: ComponentInstance; {CONST}
var bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: univ Ptr; var matchedBitmap: CMBitmap): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 9, $7000, $A82A;
{$ENDC}
function CMCheckBitmap (CMSession: ComponentInstance; {CONST}
var bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: univ Ptr; var resultBitmap: CMBitmap): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 10, $7000, $A82A;
{$ENDC}
function CMMatchPixMap (CMSession: ComponentInstance; var myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 3, $7000, $A82A;
{$ENDC}
function CMCheckPixMap (CMSession: ComponentInstance; {CONST}
var myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; var myBitMap: BitMap; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 4, $7000, $A82A;
{$ENDC}
function CMConcatInit (CMSession: ComponentInstance; var profileSet: CMConcatProfileSet): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 4, 7, $7000, $A82A;
{$ENDC}
function CMNewLinkProfile (CMSession: ComponentInstance; var prof: CMProfileRef; {CONST}
var targetLocation: CMProfileLocation; var profileSet: CMConcatProfileSet): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 16, $7000, $A82A;
{$ENDC}
function CMMGetPS2ColorSpace (CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 11, $7000, $A82A;
{$ENDC}
function CMMGetPS2ColorRenderingIntent (CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 12, $7000, $A82A;
{$ENDC}
function CMMGetPS2ColorRendering (CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: univ Ptr): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 20, 13, $7000, $A82A;
{$ENDC}
function CMMGetPS2ColorRenderingVMSize (CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; var vmSize: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 17, $7000, $A82A;
{$ENDC}
function CMConcatenateProfiles (CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; var newDst: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 5, $7000, $A82A;
{$ENDC}
{ $ALIGN RESET}
{ $POP}
{$ENDC}
{__CMMCOMPONENT__}
implementation
end.